﻿@{
    ViewBag.Title = "修改密码";
    Layout = "~/Views/Shared/Main.cshtml";
}
<div class="row">
    <div class="span10"></div>
    <div class="span2">
        <a href="#" class="btn" id="btnSave">保存</a>
    </div>
</div>
<div class="form-horizontal" id="detailDiv">
    <div class="control-group">
        <label class="control-label" for="oldPassword">原密码</label>
        <div class="controls">
            <input type="password" id="oldPassword" name="oldPassword" maxlength="20">
        </div>
    </div>
    <div class="control-group">
        <label class="control-label" for="newPassword1">新密码</label>
        <div class="controls">
            <input type="password" id="newPassword1" name="newPassword1" maxlength="20">
        </div>
    </div>
    <div class="control-group">
        <label class="control-label" for="newPassword2">新密码</label>
        <div class="controls">
            <input type="password" id="newPassword2" name="newPassword2" maxlength="20">
        </div>
    </div>

</div>
<script type="text/javascript">
    $(function () {
        $("#btnSave").click(function () {
            $.myjs.ajax("ChangePassword", "detailDiv", function () { window.location.reload(); });
        });
    });
</script>
